<script>on mouseupif the mouseloc is within rect of me thenif the clicktext contains "Me" thenshow card field "CallScript"else if the clicktext contains "here" thenshow card field "StackScript"set the scroll of card field "StackScript" to 0elsevisual effect wipe leftgo nextend ifelseselect emptyend ifend mouseup</script>
</part>
<part>
<id>2</id>
<type>field</type>
<visible> <false /> </visible>
<dontWrap> <false /> </dontWrap>
<dontSearch> <false /> </dontSearch>
<sharedText> <false /> </sharedText>
<fixedLineHeight> <false /> </fixedLineHeight>
<autoTab> <false /> </autoTab>
<lockText> <true /> </lockText>
<rect>
<left>63</left>
<top>90</top>
<right>381</right>
<bottom>252</bottom>
</rect>
<style>shadow</style>
<autoSelect> <false /> </autoSelect>
<showLines> <false /> </showLines>
<wideMargins> <true /> </wideMargins>
<multipleLines> <false /> </multipleLines>
<reservedFamily> 0 </reservedFamily>
<titleWidth>0</titleWidth>
<icon>0</icon>
<textAlign>left</textAlign>
<font>Geneva</font>
<textSize>12</textSize>
<textStyle>plain</textStyle>
<textHeight>16</textHeight>
<name>CallScript</name>
<script>on Mouseupif the mouseloc is within rect of me thenvisual effect dissolvehide meend ifend Mouseup</script>
</part>
<part>
<id>3</id>
<type>field</type>
<visible> <false /> </visible>
<dontWrap> <false /> </dontWrap>
<dontSearch> <false /> </dontSearch>
<sharedText> <false /> </sharedText>
<fixedLineHeight> <false /> </fixedLineHeight>
<autoTab> <false /> </autoTab>
<lockText> <true /> </lockText>
<rect>
<left>37</left>
<top>81</top>
<right>461</right>
<bottom>268</bottom>
</rect>
<style>scrolling</style>
<autoSelect> <false /> </autoSelect>
<showLines> <false /> </showLines>
<wideMargins> <true /> </wideMargins>
<multipleLines> <false /> </multipleLines>
<reservedFamily> 0 </reservedFamily>
<titleWidth>0</titleWidth>
<icon>0</icon>
<textAlign>left</textAlign>
<font>Geneva</font>
<textSize>12</textSize>
<textStyle>plain</textStyle>
<textHeight>16</textHeight>
<name>StackScript</name>
<script>on Mouseupif the mouseloc is within rect of me thenhide meend ifend Mouseup</script>
</part>
<part>
<id>4</id>
<type>button</type>
<visible> <true /> </visible>
<reserved5> 0 </reserved5>
<reserved4> 0 </reserved4>
<reserved3> 0 </reserved3>
<reserved2> 0 </reserved2>
<reserved1> 0 </reserved1>
<enabled> <true /> </enabled>
<rect>
<left>195</left>
<top>314</top>
<right>298</right>
<bottom>334</bottom>
</rect>
<style>roundrect</style>
<showName> <true /> </showName>
<highlight> <false /> </highlight>
<autoHighlight> <false /> </autoHighlight>
<sharedHighlight> <true /> </sharedHighlight>
<family>0</family>
<titleWidth>0</titleWidth>
<icon>0</icon>
<textAlign>center</textAlign>
<font>Chicago</font>
<textSize>12</textSize>
<textStyle>plain</textStyle>
<name>Create Help</name>
<script>on mouseUp-- requires card HELP-- card Help must have bg field "Help Notes"-- put help messages for desired fields and buttons into Help Notes-- each button or field help message begins with their name and-- ends with the text "End Note"-- after the help creation process-- holding option key and moving mouse over button or field invokes help-- First put accessing script into stack scriptAnswer "This stack or another?" with "This" or "Another"if it is "Another" thenAnswer "Select the Stack for which you wish to create Help"DoMenu "Open Stack..."end iflock screenset lockmessages to trueput the CantModify of this stack into Modifilerset the CantModify of this stack to falseMakeStackScript-- Scripts for buttons and fieldsAnswer "The Default Help Seeking is MousEnter with OptionKey. If you use the OptionKey somewhere with MouseEnter, you may wish to use another key?"¬with "CommandKey" or "Other" or "OptionKey"if it is not "Other" thenput "the" && it && "is down" into InvokeKeyelseAsk "Type exactly the keys you wish depressed on MouseEnter to invoke Help" with "the OptionKey is down"if it is "Cancel" then exit MouseUpelse put it into InvokeKeyend ifput "Fear not! Help is on the way..."-- WilliamTell-- note: I did it this way so you could simply copy the button.put "on mouseenter" & return into ScriptAddput "if" && InvokeKey && "then" & return after ScriptAddput "global HesInHere" & return after ScriptAddput "put the short name of me into HesInHere" & return after ScriptAddput "GoGetHelp" & Return after ScriptAddput " end if" & return after ScriptAddput "pass Mouseenter" & return after ScriptAddput "end MouseEnter" & return after ScriptAdd-- put help accessing script into visible buttons & fields and-- get the names of these for help notesput empty into ButtonHolderput "----------------" into EmptyLineput Empty into TotalNumberrepeat with x = 1 to the number of backgroundsset cursor to busygo bg xrepeat with y = 1 to the number of bg buttonsset cursor to busyif the visible of bg button y is true thenadd 1 to TotalNumberput the script of bg button y & return & return into ScriptHolderput return & return & ScriptAdd after ScriptHolderset the script of bg button y to ScriptHolderput "Bg Button" & return & the short name of bg button y & return & EmptyLine &¬return & EmptyLine & return & "End Note"¬& return & return after ButtonHolderend ifend repeatrepeat with z = 1 to the number of bg fieldsset cursor to busyif the visible of bg field z is true thenadd 1 to TotalNumberput the script of bg field z & return & return into ScriptHolderput return & return & ScriptAdd after ScriptHolderset the script of bg field z to ScriptHolderput "Bg Field" & return & the short name of bg Field z & return & EmptyLine &¬return & EmptyLine & return & "End Note"¬& return & return after ButtonHolderend ifend repeatend repeatrepeat with x = 1 to the number of cardsset cursor to busygo card xrepeat with y = 1 to the number of card buttonsset cursor to busyif the visible of card button y is true thenadd 1 to TotalNumberput the script of card button y & return & return into ScriptHolderput return & return & ScriptAdd after ScriptHolderset the script of card button y to ScriptHolderput "Card Button" & return & the short name of card button y & return & EmptyLine &¬return & EmptyLine & return & "End Note"¬& return & return after ButtonHolderend ifend repeatrepeat with z = 1 to the number of card fieldsset cursor to busyif the visible of card field z is true thenadd 1 to TotalNumberput the script of card field z & return & return into ScriptHolderput return & return & ScriptAdd after ScriptHolderset the script of card field z to ScriptHolderput "Card Field" & return & the short name of card Field z & return & EmptyLine &¬return & EmptyLine & return & "End Note"¬& return & return after ButtonHolderend ifend repeatend repeat-- create the help buttongo firstDoMenu "New Button"put the number of card buttons into WhichOneset the name of card button WhichOne to "Help?"set the rect of card button WhichOne to 449,33,501,54put "On MouseUp" && return & " Answer" && quote &¬"For Help - Make sure the" && InvokeKey && "when you move the mouse over the problem button or field"¬& quote & return & "End MouseUP" into HelpButtonset the script of card button WhichOne to HelpButton--create the help cardgo lastdoMenu "New Background"set the name of this card to "Help"doMenu "New Field"set the name of bg field 1 to "Help Notes"set the rect of bg field 1 to "11,58,418,326"set the style of bg field 1 to scrollingtype "b" with commandkeyput ButtonHolder into bg field 1choose the browse toolunlock screen with visual shrink to topset the CantModify of this stack to Modifilerif TotalNumber >= 120 thenAnswer "There are over 120 visible fields and buttons in this stack. You may need to REVISE this system a bit or only provide Help for the more important items."end ifAnswer "All visible buttons and fields in this stack are listed - Add help messages where needed."end mouseUpon MakeStackScript-- this could have been in a field, but then you couldn't copy the buttonput the script of this stack into ScriptHolderput return & return & "on GoGetHelp" & return after ScriptHolderput "Global HesInHere" & return after ScriptHolderput " if HesInHere is empty then exit GoGetHelp" & return after Scriptholderput "lock screen" & return after Scriptholderput "set lockmessages to true" & return after Scriptholderput " push card" & return after Scriptholderput "set cursor to watch" & return after ScriptholderPut "put" && quote & "Getting Help, Please wait..." & quote & return after Scriptholderput "go card" && quote & "Help" & quote & return after Scriptholderput "find string HesInHere in field" && quote & "Help Notes" & quote & return after Scriptholderput "if the foundchunk is empty then" & return after Scriptholderput "pop card" & return after Scriptholderput "Ask" && quote & "Sorry, no help available for:" & quote &&¬"with HesInHere" & return after Scriptholderput " exit GoGetHelp" & return after Scriptholderput "end if" & return after Scriptholderput " put word 2 of the foundline into FirstLine" & return after Scriptholderput "find string" && quote & "End Note" & quote & return after Scriptholderput "put word 2 of the foundline into SecondLine" & return after Scriptholderput "put line FirstLine + 1 to SecondLine - 1 of field" && quote &¬"Help Notes" & quote && " into HelpNotes" & return after Scriptholderput " pop card" & return after Scriptholderput "DoMenu" && quote & "New Field" & quote & return after ScriptHolderput "put the number of card fields into AddOne" & return after ScriptHolderput "put" && quote & "71,58,436,295" & quote && " into FieldRect" & return after ScriptHolderput "set the name of card field AddONe to" && quote & "Help" & quote & return after ScriptHolderput "set the rect of card field AddOne to FieldRect" & return after scriptholderput "put" && quote & "On MouseUp" & quote && " & return &" &&¬quote & "Choose the field Tool" & quote && "& return &" && quote &¬"select me" & quote && "& return &" && quote & "DoMenu" & quote &&¬"&& quote &" && quote & "Clear Field" & quote &&¬"& quote & return &" && quote & "Choose the browse tool" & quote &&¬"& return &" && quote & "End MouseUp" & quote && "into FieldScript" & return after ScriptHolderput "set the script of card field AddOne to FieldScript" & return after ScriptHolderput "Set the locktext of card field AddONe to true" & return after ScriptHolderput " Set the widemargins of card field AddOne to true" & return after scriptholderput "set the style of card field AddONe to scrolling" & return after ScriptHolderput "put" && quote & "Help" & quote &&¬"& return & return into card field AddOne" & return after ScriptHolderput "put HelpNotes after card Field AddOne" & return after ScriptHolderput "set the scroll of card field AddONe to 0" & return after ScriptHolderput "unlock screen with visual shrink to top" & return after Scriptholderput " put empty into HesInHere" & return after ScriptHolderput "Hide msg" & return after ScriptHolderput "choose the Browse Tool" & return after ScriptHolderput "end GoGetHelp" & return after Scriptholderset the script of this stack to Scriptholderend MakeStackScripton WilliamTellplay "harpsichord" tempo 250 "ee e eq ee e eq ee e eq"play "harpsichord" tempo 250 "db a3 db4 e db e a eq db a3 db4 e db e a"play "harpsichord" tempo 250 "eq db cb dbe d dbq cb a3 c#4 b3 e4e e eq ee e eq ee e eq ee e ew"-- play "harpsichord" tempo 250 "e3e e eq ee e eq ee e aq b c#4q e3e e eq ee e aq c#4e c# b3q ab e "-- play "harpsichord" tempo 250 "e3e e eq ee e eq ee e aq b c#4q a3e c#4 eh de c# b3 aq db4 a3h"end WilliamTell</script>
</part>
<part>
<id>5</id>
<type>field</type>
<visible> <true /> </visible>
<dontWrap> <false /> </dontWrap>
<dontSearch> <false /> </dontSearch>
<sharedText> <false /> </sharedText>
<fixedLineHeight> <false /> </fixedLineHeight>
<autoTab> <false /> </autoTab>
<lockText> <true /> </lockText>
<rect>
<left>151</left>
<top>28</top>
<right>366</right>
<bottom>63</bottom>
</rect>
<style>rectangle</style>
<autoSelect> <false /> </autoSelect>
<showLines> <false /> </showLines>
<wideMargins> <true /> </wideMargins>
<multipleLines> <false /> </multipleLines>
<reservedFamily> 0 </reservedFamily>
<titleWidth>0</titleWidth>
<icon>0</icon>
<textAlign>center</textAlign>
<font>Geneva</font>
<textSize>18</textSize>
<textStyle>bold</textStyle>
<textHeight>24</textHeight>
<name></name>
<script></script>
</part>
<part>
<id>6</id>
<type>button</type>
<visible> <true /> </visible>
<reserved5> 0 </reserved5>
<reserved4> 0 </reserved4>
<reserved3> 0 </reserved3>
<reserved2> 0 </reserved2>
<reserved1> 0 </reserved1>
<enabled> <true /> </enabled>
<rect>
<left>427</left>
<top>317</top>
<right>469</right>
<bottom>333</bottom>
</rect>
<style>roundrect</style>
<showName> <true /> </showName>
<highlight> <false /> </highlight>
<autoHighlight> <false /> </autoHighlight>
<sharedHighlight> <true /> </sharedHighlight>
<family>0</family>
<titleWidth>0</titleWidth>
<icon>0</icon>
<textAlign>center</textAlign>
<font>Chicago</font>
<textSize>12</textSize>
<textStyle>plain</textStyle>
<name>Quit</name>
<script>on mouseUpvisual effect iris open slowlygo lastend mouseUp</script>
</part>
<content>
<layer>card</layer>
<id>1</id>
<text><span class="style4">ote - the default procedure for invoking help is to move the mouse over a field or button with the OptionKey down. If this would cause a problem in your stack, the "Create Help" button below allows you to change this key sequence before it begins to build your help scripts.This process adds between 2 - 8 K to your stack depending on its size (aside from the help messages you write) - The "</span><span class="style9">Create Help</span><span class="style4">" button below:</span><span class="style8">1</span><span class="style4"> - creates a "</span><span class="style9">Help?</span><span class="style4">" button on the first card telling users how to access the help you develop</span><span class="style8">2</span><span class="style4"> - creates a card HELP (last card) having a field "Help Notes" in which you enter your help messages</span><span class="style8">3</span><span class="style4"> - Makes a list of all visible fields and buttons in the stack and enters them into the "Help Notes" field for you to edit and add help messages as you please - if you wish no help to be available for a button or field, then simply delete its lines (including the line End Note following its name) from the Help Notes field.</span><span class="style8">4</span><span class="style4"> - To write a Help message - simply type it into the lines (no size limit) following the field or button name to which it relates (replace the ------------ lines)</span><span class="style8">5</span><span class="style4"> - </span><span class="style5"><a href="#" class="group">Adds the script required to invoke help (click on me see it) to each visible field or button</a></span><span class="style4"></span><span class="style8">6</span><span class="style5"><a href="#" class="group"> - Adds the stackscript necessary to invoke help to your stack (click here to see it) - This script automatically creates </a></span><span class="style4">a Help Field on the card where it is called. Clicking on the field deletes it.</span></text>
</content>
<content>
<layer>card</layer>
<id>2</id>
<text>--Within a visible button or fieldon mouseenter if the OptionKey is down then global HesInHere put the short name of me into HesInHere GoGetHelp end if pass Mouseenterend MouseEnter</text>
</content>
<content>
<layer>card</layer>
<id>3</id>
<text>on GoGetHelp Global HesInHere if HesInHere is empty then exit GoGetHelp lock screen set lockmessages to true push card set cursor to watch put "Getting Help, Please wait..." go card "Help" find string HesInHere in field "Help Notes" if the foundchunk is empty then pop card Ask "Sorry, no help available for:" with HesInHere exit GoGetHelp end if put word 2 of the foundline into FirstLine find string "End Note" put word 2 of the foundline into SecondLine put line FirstLine to SecondLine of field "Help Notes" into HelpNotes pop card DoMenu "New Field" put the number of card fields into AddOne put "71,58,436,295" into FieldRect set the name of card field AddONe to "Help" set the rect of card field AddOne to FieldRect put "On MouseUp" & return & "Choose the field Tool" & return & "select me" & return & "DoMenu" && quote & "Clear Field" & quote & return & "Choose the browse tool" & return & "End MouseUp" into FieldScript set the script of card field AddOne to FieldScript Set the locktext of card field AddONe to true Set the widemargins of card field AddOne to true set the style of card field AddONe to scrolling put "Help" & return & return into card field AddOne put HelpNotes after card Field AddOne set the scroll of card field AddONe to 0 unlock screen with visual shrink to top put empty into HesInHere Hide msg choose the Browse Toolend GoGetHelp</text>
</content>
<content>
<layer>card</layer>
<id>5</id>
<text>Ted's‚Ñ¢ HelpCreator</text>
</content>
<name></name>
<script>on OpenCardset the scroll of card field 1 to 0end OpenCard</script>
</card>
card_7007.xml
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >